package com.ruoyi.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维修记录对象 t_maintain
 * 
 * @author ruoyi
 * @date 2022-10-23
 */
public class Maintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long maintainId;

    /** 描述 */
    @Excel(name = "描述")
    private String describes;

    /** 维修员ID */
    @Excel(name = "维修员ID")
    private Long userId;

    /** 状态1.待修复、2.修复中、3.已修复、4.无法修复 */
    @Excel(name = "状态1.待修复、2.修复中、3.已修复、4.无法修复")
    private Long mainStatue;

    /** 维修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mainTime;

    /** 故障ID */
    @Excel(name = "故障ID")
    private Long malfunctionId;

    public void setMaintainId(Long maintainId) 
    {
        this.maintainId = maintainId;
    }

    public Long getMaintainId() 
    {
        return maintainId;
    }
    public void setDescribes(String describes) 
    {
        this.describes = describes;
    }

    public String getDescribes() 
    {
        return describes;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMainStatue(Long mainStatue) 
    {
        this.mainStatue = mainStatue;
    }

    public Long getMainStatue() 
    {
        return mainStatue;
    }
    public void setMainTime(Date mainTime) 
    {
        this.mainTime = mainTime;
    }

    public Date getMainTime() 
    {
        return mainTime;
    }
    public void setMalfunctionId(Long malfunctionId) 
    {
        this.malfunctionId = malfunctionId;
    }

    public Long getMalfunctionId() 
    {
        return malfunctionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintainId", getMaintainId())
            .append("describes", getDescribes())
            .append("userId", getUserId())
            .append("mainStatue", getMainStatue())
            .append("mainTime", getMainTime())
            .append("malfunctionId", getMalfunctionId())
            .toString();
    }
}
